<script type="text/javascript">
  //对象
  let a = {
    b:1,
    c:2,
  }
  let b = {...a};
  console.log(b);


  //数组
  a = [1,2,3,4];
  b = [...a,5,6,7];
  let c = [...a];
  c.push(5);
  console.log(a);
  console.log(c);
  // console.log(b.join('.'));
  // b.push(function(i){
  //   alert(i);
  // });
  // console.log(b);
  // b.map(function(i,j){
  //   console.log(i);
  //   console.log(j);
  // })

</script>
